#ifndef MYTHREAD_H
#define MYTHREAD_H
#include <QThread>
#include <memory>
class SqlExec;
class MyThread : public QThread {
  Q_OBJECT
public:
  explicit MyThread(QObject *parent = nullptr);

  void setDB(SqlExec *db);
  SqlExec *getDB() const;

  size_t add();
  size_t get_count() const;
  size_t reduce();

signals:

public slots:

private:
  size_t _count;
  std::shared_ptr<SqlExec> _db;
};

#endif // MYTHREAD_H
